<template>
    <fieldset>
        <legend>购物车</legend>
         <ul>
            <li v-for="item in cart" :key="item.id">
                <b>产品名称:{{item.title}}</b>
                &nbsp;
                &nbsp;
                <b>价格:{{item.price}}</b>
                &nbsp;
                &nbsp;
                <b>数量:{{item.count}}</b>
            </li>
        </ul>
    </fieldset>
</template>
<script>
import {mapState} from "vuex"
    export default {
        name:"cart",
        computed:{
            ...mapState('Cart',['cart'])
        }
    }
</script>